package response

import "video/api/models"

type ErrResponse struct {
	HttpSC int
	Error  models.Err
}

var (
	ErrorRequestBodyParseFailed = ErrResponse{HttpSC: 400, Error: models.Err{Error: "Request body is not correct", ErrorCode: "001"}}
	ErrorNotAuthUser            = ErrResponse{HttpSC: 401, Error: models.Err{Error: "User authentication failed.", ErrorCode: "002"}}
	ErrorDBError                = ErrResponse{HttpSC: 500, Error: models.Err{Error: "DB ops failed", ErrorCode: "003"}}
	ErrorInternalFaults         = ErrResponse{HttpSC: 500, Error: models.Err{Error: "Internal service error", ErrorCode: "004"}}
)
